package com.coolw.core.function;

import java.util.function.Consumer;

/**
 * Consumer函数：接收一个参数T，不返回结果。调用accept方法执行
 *
 * @author coolw
 * @date 2025/3/21 9:10
 */
public class ConsumerTest {

    public static void main(String[] args) {
        Consumer<String> consumer = s -> System.out.println("hello " + s);
        consumer.accept("coolw");
    }
}
